<template>
  <div id="data-view">
    <dv-full-screen-container>
      <!--header-->
      <div class="main-header">
        <div class="mh-left"><TopLeft /></div>
        <div class="mh-middle"><TopMiddle /></div>
        <div class="mh-right"><TopRight /></div>
      </div>
      <!-- main-container -->
      <div class="main-container">
        <!--main-left-container-->
        <dv-border-box12 class="left-chart-container" title="人员情况" >
          <LeftCard />
          <Left-Chart-1 />
          <Left-Chart-2 />
        </dv-border-box12>
        <!-- main-right-container -->
        <div class="right-main-container">
          <!-- main-right-top-container -->
          <div class="right-top-container">
            <!-- main-right-top-left -->
            <dv-border-box12 class="right-top-left">
              <Map />
            </dv-border-box12>
            <!-- main-right-top-right -->
            <div class="right-top-right">
              <dv-border-box12 class="right-top-chart">
                <RightCard />
                <RightPie />
              </dv-border-box12>
            </div>
          </div>
          <!-- main-right-bottom-container -->
          <div class="right-bottom-chart">
            <dv-border-box12 class="right-bottom-chart-funnel">
              <RightFunnel />
            </dv-border-box12>
            <dv-border-box12 class="right-bottom-chart-squre">
              <RightMiddlePie />
            </dv-border-box12>
            <dv-border-box12 class="right-bottom-chart-half">
              <RightTwoPies />
            </dv-border-box12>
          </div>
        </div>
      </div>
      <!-- bottom-container -->
      <div class="bottom-container">
        <dv-border-box12 class="bottom-container-left">
          <BottomLeftBoard />
        </dv-border-box12>
        <dv-border-box12 class="bottom-container-right">
          <BottomRightBoard />
        </dv-border-box12>
      </div>
    </dv-full-screen-container>
  </div>
</template>

<script>
import TopLeft from './TopLeft'
import TopMiddle from './TopMiddle'
import TopRight from './TopRight'
import LeftCard from './LeftCard'
import LeftChart1 from './LeftChart1'
import LeftChart2 from './LeftChart2'
import Map from './Map'
import RightCard from './RightCard'
import RightPie from './RightPie'
import RightFunnel from './RightFunnel'
import RightMiddlePie from './RightMiddlePie'
import RightTwoPies from './RightTwoPies'
import BottomLeftBoard from './BottomLeftBoard'
import BottomRightBoard from './BottomRightBoard'

export default {
  name: 'DataView',
  components: {
    TopLeft,
    TopMiddle,
    TopRight,
    LeftCard,
    LeftChart1,
    LeftChart2,
    Map,
    RightCard,
    RightPie,
    RightFunnel,
    RightMiddlePie,
    RightTwoPies,
    BottomLeftBoard,
    BottomRightBoard
  },
  data () {
    return {}
  }
}
</script>

<style lang="less">
#data-view {
  width: 100%;
  height: 100%;
  background-color: #030409;
  color: #fff;

  // 整体
  #dv-full-screen-container {
    background-image: url("./img/bg.png");
    background-size: 100% 100%;
    box-shadow: 0 0 3px blue;
    display: flex;
    flex-direction: column;
  }

  // 头部
  .main-header {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    .mh-left {
      font-size: 20px;
      color: rgb(1, 134, 187);

      a:visited {
        color: rgb(1, 134, 187);
      }
    }

    .mh-middle {
      font-size: 30px;
    }

    .mh-left,
    .mh-right {
      width: 450px;
    }
  }

  // 主体
  .main-container {
    height: calc(~"75% - 80px");
    display: flex;
    flex-direction: row;

    .border-box-content {
      padding: 20px;
      box-sizing: border-box;
      display: flex;
    }
  }

  // 左图
  .left-chart-container {
    width: 30%;
    padding: 10px;
    box-sizing: border-box;

    .border-box-content {
      padding: 0 10px;
      flex-direction: column;
    }
  }

  // 左图card
  .left-top-card {
    height: 25%;
  }

  // 右图
  .right-main-container {
    width: 70%;
    padding-left: 5px;
    box-sizing: border-box;

     .border-box-content {
      padding: 0 10px;
    }
  }

  // 右图上部
  .right-top-container {
    height: 65%;
    display: flex;

      .border-box-content {
        padding-top: 10px;
        flex-direction: column;
      }
    }

  // 右图上部左图
  .right-top-left {
    width: 55%;
  }

  // 右图上部右图
  .right-top-right {
    width: 45%;
  }

  // 右图底部
  .right-bottom-chart {
    height: 35%;
    display: flex;

    .border-box-content {
        padding-top: 10px;
        flex-direction: row;
      }
  }

  // 右图底部一
  .right-bottom-chart-funnel {
    width: 28%;
  }

  .right-bottom-chart-squre {
    width: 27%;
  }

  .right-bottom-chart-half {
    width: 45%;
  }

  .right-top-chart {
    height: 100%;
  }

  .bottom-container {
    height: 25%;
    display: flex;
    flex-direction: row;
  }

  .bottom-container-left {
    height: 100%;
    width: 50%;
    box-sizing: border-box;
  }

  .bottom-container-right {
    height: 100%;
    width: 50%;
    box-sizing: border-box;
  }
}
</style>
